import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/team_user_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class TeamUserEntity {
  int? role;
  List<TeamUserData>? data;
  String? bossName;

  TeamUserEntity();

  factory TeamUserEntity.fromJson(Map<String, dynamic> json) =>
      $TeamUserEntityFromJson(json);

  Map<String, dynamic> toJson() => $TeamUserEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class TeamUserData {
  String? uid;
  String? name;
  int? role;
  String? mobile;

  TeamUserData();

  factory TeamUserData.fromJson(Map<String, dynamic> json) =>
      $TeamUserDataFromJson(json);

  Map<String, dynamic> toJson() => $TeamUserDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
